package com.xcc.strategypattern.demo04;

/**
 * @Description: Character
 * @Author: xiechuang
 * @Date: 2022/5/20
 */
public abstract class Character {

    WeaponBehavior weaponBehavior;

    public abstract void fight();

    /**
     * 设定行为
     *
     * @param weaponBehavior
     */
    public void setWeaponBehavior(WeaponBehavior weaponBehavior) {
        this.weaponBehavior = weaponBehavior;
    }
}
